package com.ruoyi.psi.purchase.pay.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 采购付款/委外付款详细表
 * psi_purchase_pay_list 主
 * @author Drj 2021/6/28
 * 修改：lsy 2021.7.17
 */
public class PurchasePayList extends BaseEntity {
    /**
     * 采购付款/委外付款编号
     */
    @NotNull(message = "采购付款不能为空")
    @ApiModelProperty(value = "采购付款", required = true)
    private String purchasePayId;
    /**
     * 采购订单/委外订单编号
     */
    @NotNull(message = "采购订单不能为空")
    @ApiModelProperty(value = "采购订单", required = true)
    private String purchaseOrderId;
    /**
     * 单据类别
     * 0：采购订单 1：采购退货 2：委外订单
     */
    @ApiModelProperty("单据类别")
    private String payType;
    /**
     * 单据时间
     */
    @ApiModelProperty("单据时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp createTime;
    /**
     * 单据总额
     */
    @ApiModelProperty("单据总额")
    private double purchasePriceTotal;
    /**
     * 订单入库金额
     */
    @ApiModelProperty("订单入库金额")
    private Double  purchaseStoragePrice;
    /**
     * 订单已付金额
     */
    @ApiModelProperty("订单已付金额")
    private Double amountPaid;
    /**
     * 本次付款金额
     */
    @ApiModelProperty("本次付款金额")
    private double payAmount;
    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    public String getPurchasePayId() {
        return purchasePayId;
    }

    public void setPurchasePayId(String purchasePayId) {
        this.purchasePayId = purchasePayId;
    }

    public String getPurchaseOrderId() {
        return purchaseOrderId;
    }

    public void setPurchaseOrderId(String purchaseOrderId) {
        this.purchaseOrderId = purchaseOrderId;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    @Override
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public double getPurchasePriceTotal() {
        return purchasePriceTotal;
    }

    public void setPurchasePriceTotal(double purchasePriceTotal) {
        this.purchasePriceTotal = purchasePriceTotal;
    }

    public Double getPurchaseStoragePrice() {
        return purchaseStoragePrice;
    }

    public void setPurchaseStoragePrice(Double purchaseStoragePrice) {
        this.purchaseStoragePrice = purchaseStoragePrice;
    }

    public Double getAmountPaid() {
        return amountPaid;
    }

    public void setAmountPaid(Double amountPaid) {
        this.amountPaid = amountPaid;
    }

    public double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(double payAmount) {
        this.payAmount = payAmount;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
